minor bug fixes and alert dialog updates