Finally figured out that the problem happened at the main.java. The
transition logic between activities is wrong