Adding focus and blur events