timer working now and app going to main screen when it should