Added autoselect option for reference element
Added "Fit to element" button