updated some javascript events and the home page