redirect to correct page when deleting a job