fixed some minor code errors in user_page view