made dialog modal
added confirmation class to remove confirmation dialog