Create a window for editing tables and create  exit event