fixed bugs on admin page