added template inheritance to inserta an appwide navigation system