Add some comments and remove unneccessary function to display admin options.