Added utilities for buy. Some UI changes