Bug-116 Make MainActivity can select different category.

I think it is because you change these two function as static. So that you cannot use this.handler anymore.