simplified the onclick method using android:tag