disable cache buttons when page is not loaded and other things