adding some toggle functionality to recommendation