added ui support for api to start profiling