restart run function and add apperror
start render function