fix clean unused method in macros
fix display sidebar