Refactored DisplayMessageActivity to MainActivity and cleaned up nested fragments