Fixing some callbacks and adding width calculation on resize for responsive