refactor: input blur and focus