Improve admin page, fix warnings