fixed nav bar link bug and added event factory for testing