Added event before creating homepage