added modals to page 2 and animation only runs once