adds onBeforeAction to get isotope initialization to execute at the correct time