Implemented the edit window. Still a lot of bugs left, and inputting date is not yet possible. Also moved preference load and store to a class WindowPreferenceController