The ui part of exchange functionality is finished.