refactor render loop
using famous Timer for rendering