cleaned up dependencies and index page code