sounds like your running that routine in the main loop so it keeps running the same routine all the time.
you can actually turn on/off that particular MOUSECLICK() routine by adding a Flag Variable like this
if flag = 1
Text 0,240, "Home"
Text 0,272, "Shop"
if mouseclick()=1
if mousex()>0 and mousey()>240 and mousex()<45 and mousey()<250
home()
endif
if mousex()>0 and mousey()>272 and mousex()<45 and mousey()<280
shop()
endif
endif
endif
to show the 'home shop' buttons just make the variable called 'flag = 1'
when you want to hide the buttons make the variable called 'flag = any other number except 1'.