Small Issue fix in controller's save function to get id