modified the index page for leave.