1. Add activity handler
2. Separate the logic of init and ready in panels