applying layouts and removing old posts