Added resizable option, changed resizable and draggable init/destroy process to more flexible