Added exit function
Added exit html