Automatically redirect upon certain actions