Added functionality for qr code , view rewards and sync with mysql db