add close functionality to transfer modal