add pattern front controller