added isAgent check on the UI