bug fix in add page