remove page and add some callbacks