modified admin codes and added base template