Added table layout and table row dynamically and added comments