delete old page and some stuff