Added a lockfile and reordered admin page