Refactored CtkView and added some getters and setters