Create abstract class for UI