ECP mulls legal action against KP CM, ministers