Towards unified theory of $2d$ gravity