add admin panel to index if logged in
temp fixed silly require bug with __destruct