fixed document menu events