added  simple ui functionality