removing unnecessary code from modals plugin and sample tweaks