Finish cleaning up toggle menus

Add setLayout helper function
Move toggleViewPreference to FileManagerSettings