clean up sidebar markup