move the main content to fragment