moved restFul actions into a single class