refactoring dropdown logic (simplify)
continue borrow template