An event based pattern for fragments to communicate to their activities