now selects correct tab based on overview item click