Admin page nearly done. fixed two bugs