add settitle function