added function to centre content