make window and edit more simple