Changing on ready event