added onclick functionality, index updated every week