added the support for clicking and changing the fragment