add patter view