refactored some of draw method into new render module