adding edges and navbar directive