added UI and utility helper functions