add conditionals to display transactions