Fixed #2 Problem displaying long paths

Also fixes the performance problem caused by last empty text button, tho i have not figured why that performance decrease happens.