added cart adjusting functionality, script to publish