added client side logic to view uploaded images