extracted panel and nav bar using custom directive/partial