Adding focus and focusout methods