moved entity namespace to controller, otherwise it has to be passed on every call