Reformat main sidebar file and remove unwanted items