fixed exiting bugs in editor and small bug in filebrowser