Feature/2796 create preferences panel

Closes #2798, #3500.