set title in initWithStyle method