Implemented timer to open main activity