adding appendTo and removing appendView
adding appendTo and removing appendView