adding redirect in add_view