Hide transition buttons if no items in list

some tiny code cleanups