fixed render bugs in controllers