added renderName to controller. Works but needs tweaking