Whitespace correction and dynamic context menu