added email loading and message viewing