added lock and unlock functionality to main page

re-arranged the admin section add page