puts event calls for initial render inside of conditional