added back button functionality and attempted to fix time