update functions for cart added