some view methods a little refactored