resolved javasvcript issues with return buttom