added cursor to purchase element remove hard code