made timer only start when content is loaded