code cleanup
asset loading
appending view elements to index