generate user and admin views