added a GetBags function to viewBags

it returns the name of the selected bag