Class to handle views