UI authorization logic added.