added web metadata index path and clean up code format