Adds a new layout with gravity and center to both activities