Move methods from constructor to prototype
Remove duplication for setting up buttons
Remove duplication for setting up backend icons
Merge pull request #522 from galfert/refactor_view

Refactor view