refactoring: move all logic related to transfering between panels to separate module