Made saving redirect to main page