added overlay and fixed autoWidth