implemented initial render