Updated permission and theme hooks