Updated cart functionaligy with empty buttons, new flash for errors