moved visual stuff to view