Improvements on layout edit view.

Pressing "Enter" on a modal now triggers the default function (blue button)
rather than just close the modal and do nothing. Fixed error in new accessory
creation.