code cleanup on interface and policy page