add functionality for user views

add functionality for user views