Added thickness, refactored connecting ui elements to actions and reading them.