makes navbar responsive; adds active flag for events