changing the working of ContentView