Added: before and after navigation events