laying out the ui elements