added view handling through viewport
updated form class
now easier to use