Removes elements cleaning empty nodes left behing, removes form elements and turns header into div