add weights handling to phantom coffee and change to relative url for ui