remove unnecessary code in MyActivity