Added controller for resources