moved out identity stuff and removed redirect to view_header