code for creating toast