Working dialogfragment for creating and editing items.