Change method to change frame to windows, add Edit