edited create action to update sidebar