logo click event optimized