deletes unnecesary layout from static_pages