I have a function that gets executed every time a specific URL is called, upon the execution it checks whether the arm is available or not if there is then the page is enabl