changed editPublication to updatePublication because editPublication is for actual publications