Added some responsiveness to dialogue boxes