added focus and blur handeling