made changes for focus and blur and if change