add limit char length on title + autohide path if title too long