MODIFIED: getsub in full flexbox, fix modal bug