added support for carousel