Exit confirmation Functionality added+ bug fixes