refactored ui class to use bind instead of that=this