removed "raise" command from primary view and replaced with original 500 redirect