moved more global definitions
added layout changer
fixed tab bug
added numbers mode
fixed upper Y bug