Changed code to support portrait mode
Use android.app.Fragment instead of android.support.v4.app.Fragment