fixed the error with add_page for wrong data submission.