written the functionality for commandSearch only for floating tasks.