Fixed main activity to use fragment