created and positioned all elements