some view functions