update Floating Bar shown logic