Added functionality to EditFragment and FragmentViewer