implemented tab rename functionality with a message dialog