Added grid layout with button for C and P

added grid layout with buttoncell, need to handle the events.