remove appended elements and updated views to handle remove