some changes for toast being displayed