Adding actions for moving elements only when it makes sense