fix add to view function
clean up extending modules