Added code for first page