create a couple of directives for blur event and for manage removeIcon