added code to get source button and destination button