fixed the jquery for disappearing buttons