fixed up model attribute and redirect handling