Cleaned up loading and replace order of contact and message detail panes.