added basic logic for element path dropdown menu