started adding UI functions