Modified the index page and added the power emit event