change from get id in model to controller