Attached timer to gui