working gridlayout

Signed-off-by: rayyrayy <ray61503@hotmail.com>