new mask input widget and minor fixes