remove DOM from model and moved to directive definition