fixed bugs in admin page