Changed the layout of the main file so that it is horizontal layout instead of vertical layout