create nicer and scoped togglable panel