How to invoke a piece of code automatically in Aura Components