changed app close behavior to log player out and connected log out button to model log out func