fixed the seconds toggle to work without refreshing the page