-- changed my for loop for creating rows, changed the 1st param in the grid layout method to 0 instead of using a as i recently learnt that 0 makes the grid layout dynamic for that specific param.
-- added a function to create tabs. making it easier to make them modular.