final working version of the resizable columns directive. Needs refactoring