added toast message support to mainview