Bug-116 Make MainActivity can select different category.

If that's expected, please move these two method at the top of methods or at the bottom of methods.