reworking
added listener for blur events
added dom manipulation
updated