BACKLOG-817: fix for closing and reopening recommend-modal