Made some changes to how the fragments handle the context menu events.