Gravity as a diffeomorphism invariant gauge theory