refactor MyActivity