add elements and redirect