Adds closing and dynamic sizing