Added restrictor for when to update modal window.