Controls should use elem instead of document