* calculating whether to place the list on the right or left edge of the parent * change naming and add import of createRef