Added setView and setModel.
Still WIP. Now clicking fields works.