fix error handling in network operations
add dimens.xml for widget