implemented gui som errors occure in 2 views