fixed admin mode, restricted it to users with admin access, added relationships to all models