formatted the MainApp class. changed the reminder to render every 10 seconds.
The reminder works when the window is minimised also