Limit set_index method to create - move other functionlity to controller