added isSelected function for nav selection

function in header.js controller for nav selection to work in header.html