creating controller generator