updated buy button and added in balance functionality