added listeners when purchase car and cancel purchase are clicked