Some improvements about RubyElement and UI