Modified new Entry behaviour in mainActivity.y.