Use created event to load functions