Updated window functionality: minimise and exit.