add event to register for home page