Update portfolio, refactor show/hide details javascript