added timer functions and loading spinner