adding view replace for layouts