implemented remove functionality for sessions