manage rubber band inside gui class