Fixed some bugs. Proper URL for first page