fixed when empty btn is clicked no routing