Preferences and main activity are now wired (still have to implement a listener to listen to preferences changes without closing and reopening the application)