BUG-FIX, REFACTOR, TEST controller render method, remove clear method, added tests