Add functionality to dynamically create elements that appear below each other