fixing time bug
moving preferences into its own controller
adding working preferences page