method for start and stop session switched