fixed some index page code, booking constraint