Minor issue, but might want to consider not showing the message of Unsaved changes if it is 0 minutes ago, because it basically means no unsaved changes that requires the user's attention