Added redirection after creating middle entity