Abstracting and fixing. Needs work on the mobile display

Signed-off-by: Kenneth Lim <kenlimmj@gmail.com>
Cleaning up the grid behaviour

Signed-off-by: Kenneth Lim <kenlimmj@gmail.com>