put views in separate files

fixed index not rendering