added text menu, fixed firefox paste bug