add some functions that can set title and legend's frame