Adding initializing code in activity it self