Move to DialogFragments. Add gradle build