ok final form i think esc implemented

almost done exit implemented by cliknig esc