Better permissions handling for UI
Fixed some unset permissions.