added user interface to customize units