Dialer: code cleanup and UI improve

Change-Id: Ib1662f97767e31a5a5969505b8f615863cf5294e