Fix for clicking the currently active page

Added the fix for the malfunction when currently active page is clicked again