Important UI fixes, including javascriot "are you sure" dialog boxes