several bug fixes and minor ui improvements for spreadsheet app