implemented main form grid