Make edit dialog responsive