Frontend and closing status change function in admin panel