Getting activity controls in the code.