adds some simple functionality to ui