Added on click function on Exit button