make logClick and logView available internally