creating controllers template