fixed bug for redirecting to list after creating it