Fixed dialog

now closes when back is pressed