added function to display open activities only