fixing admin page bug