fixes for attachment widget