coded some view-stuff