updated with error handling in show view of investor