add ui display functionality