Refactor methods by adding getFragmentTag