Added logic to display transactions upon clicking on an account