performance improvement to refine studies page, more could be done with preprocessing and threads issue #52