take out uneseccesary code from view.st