implemented dialog view