moved dialogue to view