a smart float button