renamed api render for better recognition
templates refactored & cleaned up