added option to disable rubber banding