logic broken for blur and focus on edit box