Implemented Dialog fragments to replace Activities