grid layout implemented.

Signed-off-by: Lee Jian Yi David <ljydavid@soctf-imac-028.comp.nus.edu.sg>