changes add button behaviour on click, attempts to add modal pages but implementation needs refined