added nav attr directive for active switching and started settings ctrl