getting rid of unnecessary layout page