fixed close on back pressed to work every time