adding window reloads and working on edit

edit is still assigning new key code instead of keeping one.