Menu Bar Update

Updated exit function in menu bar so it now works