Simplified the Activation user interface code.