created ViewPool class