added close method to admin panel