added possibility to change view