General click event for navigation