add ui functionlity