amendment in flash notice and fix in publish blog hook