fix modal error and change margin for padding so we can have good scroll anchor position