added ability to show, filter and group target version

* minor code cleanup in time_booking_query
merged