Adding event hooks and min/max width params