added the smart extend feature

ui improvements