added pass function call into carousel