take out of the view code parts that do not belong there