elevate button update

Added comments, updated the way of calculating previous position