Refactor, implement resize event, improve fraction calulation