remove unused code
clear #addcache when disable add with option
better function to show header option
remove unused code
simplify some function