main grid layout working