added action and params, changed new and index actions