Moved content function to ContentView