generate admin pages respecting model namespace

Should fix #1275