adding redirect to main page
setting better message