delete old page and create new one