fix bugs, and added admin panel