1. refactored main activery to be find server activety.
2. added the main activety for the click mouse state.
3. fixed small conflicts.