created directive for top nav