some refactoring in create_mod_or_element
move initializing to init method
uppdate test for changes
merge add block html and create additional html methods