Rewrites title based on option clicked