Improving UV resistance and preventing yellowing in epoxy resin formulations