Added toggling between inbox and outbox