Mudavadi picks UDF, resigns as minister