Added image display when switching tabs and hitting the update button