make controller methods independent of model name