Got the application in a working state. It now properly updates the time every minute.