updates navbar and deletes unwanted static pages