added functionality to view past flights