modified dialog header ui and updating logics