Add ui dependency to the api