added setTitle method