Fixed admin page functionality