fix frontend for dynamic width