moves timer functionality to a fragment