Breaks out dictionary method so can be set without instantiation. Adds
textTapped callback method.