fixed dialog dismiss controller on button click