add log & admin & solve some bugs