Addes Pages controller
added layout