add creation of elements
add validate function to design document
add frontend validation