redraw solutions without refreshing/redirecting