admin page done, fixing logging to file function