Add a toggle method to call expand/collapse

Just a small helper for custom template