Added UI for first page and second