Navigation detected based on element or id