tuning UI position and add snap to value function