Adds reset time for minute sync
Adds close action button
Refactors js for readability
Refactors buttons for simplicity