getting the layout for the data

manipulating the layout so that I can display the data to the user in
an attractive way