added toast functionality