changes to controller, views and spec to reflect test requirements