adding functionality to cost and changing idi
minor improvements
added bootbox